
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

/*
----------------------------------------------------------------------------------------------------

-- Created By:  ()
-- Purpose: Updates a record in the Hospital table
----------------------------------------------------------------------------------------------------
*/


CREATE PROCEDURE dbo.Hospital_Update
(

	@Id int   ,

	@LocalId nvarchar (20)  ,

	@Title nvarchar (50)  ,

	@Alias nvarchar (50)  ,

	@Introduction ntext   ,

	@Thumbnail varchar (200)  ,

	@ClinicTime nvarchar (500)  ,

	@Contact nvarchar (500)  ,

	@CreatedDate datetime   ,

	@UpdatedDate datetime   ,

	@CreatedUser varchar (50)  ,

	@UpdatedUser varchar (50)  
)
AS


				
				
				-- Modify the updatable columns
				UPDATE
					[dbo].[Hospital]
				SET
					[LocalId] = @LocalId
					,[Title] = @Title
					,[Alias] = @Alias
					,[Introduction] = @Introduction
					,[Thumbnail] = @Thumbnail
					,[ClinicTime] = @ClinicTime
					,[Contact] = @Contact
					,[CreatedDate] = @CreatedDate
					,[UpdatedDate] = @UpdatedDate
					,[CreatedUser] = @CreatedUser
					,[UpdatedUser] = @UpdatedUser
				WHERE
[Id] = @Id 
				
			

GO
